import { Message } from '@arco-design/web-react';
import '@arco-design/web-react/dist/css/arco.css';
import '@wangeditor/editor/dist/css/style.css';
import dayjs from 'dayjs';
import djsZH from 'dayjs/locale/zh-cn';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import App from './App';
import './less/index.less';
import main from './main';
import store from './redux/store';
main.init();
dayjs.locale(djsZH);

Message.config({ duration: 800, maxCount: 3 });
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);

root.render(
  <Provider store={store}>
    <App />
  </Provider>
);
